﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;


namespace BussinessLayer
{
    public class tblThamso_xlcd
    {
        DataLayer.Data odata = new DataLayer.Data();
        public DataTable Select()
        {
            return odata.view_text("SELECT * FROM thamso_xlcd WHERE thamso_id=(select max(thamso_id) from thamso_xlcd) ORDER BY loai");
        }
        public void thamso_xlcd(int v1, int v2, int v3, int v4, int v5, int v6, int v7, int v8)
        {
            SqlParameter[] sp = new SqlParameter[8];
            sp[0] = new SqlParameter("@v1", v1);
            sp[1] = new SqlParameter("@v2", v2);
            sp[2] = new SqlParameter("@v3", v3);
            sp[3] = new SqlParameter("@v4", v4);
            sp[4] = new SqlParameter("@v5", v5);
            sp[5] = new SqlParameter("@v6", v6);
            sp[6] = new SqlParameter("@v7", v7);
            sp[7] = new SqlParameter("@v8", v8);
            odata.proc_TS("tblThamso_xlcd", sp);
        }
    }
}
